import request from '@/utils/request'

// 查询应急值班列表
export function listSysEmergencyDutyInfo(query) {
    return request({
        url: '/emergency/sysEmergencyDutyInfo/list',
        method: 'get',
        params: query
    })
}

// 查询应急值班详细
export function getSysEmergencyDutyInfo(id) {
    return request({
        url: '/emergency/sysEmergencyDutyInfo/' + id,
        method: 'get'
    })
}

// 新增应急值班
export function addSysEmergencyDutyInfo(data) {
    return request({
        url: '/emergency/sysEmergencyDutyInfo',
        method: 'post',
        data: data
    })
}

// 修改应急值班
export function updateSysEmergencyDutyInfo(data) {
    return request({
        url: '/emergency/sysEmergencyDutyInfo',
        method: 'put',
        data: data
    })
}

// 删除应急值班
export function delSysEmergencyDutyInfo(id) {
    return request({
        url: '/emergency/sysEmergencyDutyInfo/' + id,
        method: 'delete'
    })
}
